<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var a4=parseInt(prompt("请输入学生名次"))
    switch(a4){
        case 1:
console.log("第一名奖学金1000元");
break;
case 2:
console.log("第二名奖学金800元");
break;
case 3:
console.log("第三名300元");
break;
default:
console.log("对不起，没有奖励");
break;
    }
</script>
</html>